<div id="content_set">

	<?php if(!$this->article['visible']) { ?>
	
		<div class="information">Cet article a été supprimé, il ne sera par conséquent pas visible quelque soit son status.</div>
		
	<?php } ?>
	
	
	<form 	action="<?php echo $this->url(array('module' => 'backend', 'controller' => 'article', 'action' => 'prc-set', 'id' => $this->article['id']), null, true); ?>"
			method="post"
			id="set_form">
		
		<input type="hidden" id="redirection" name="redirection" value="<?php echo $this->url(array('module' => 'backend', 'controller' => 'manage', 'action' => 'articles'), null, true); ?>" />
		
		<label for="status">Statut :</label>
		<select id="status" name="status" class="required status">
			<option value="">Choisir ...</option>
			<option value="active"<?php echo ($this->article['status'] == 'active') ? ' selected="selected"' : ''; ?>>Activé</option>
			<option value="inactive"<?php echo ($this->article['status'] == 'inactive') ? ' selected="selected"' : ''; ?>>Désactivé</option>
		</select>
		<br />
		
		<label for="category">Catégorie :</label>
		<select id="category" name="category" class="required category">
			<option value="">Choisir ...</option>
			<?php foreach($this->categories as $c) { ?>
				<option value="<?php echo $c['id']; ?>"<?php echo ($this->article['id_category'] == $c['id']) ? ' selected="selected"' : ''; ?>><?php echo $c['name']; ?></option>
			<?php } ?>
		</select>
		<br />
		
		<label for="title">Titre :</label>
		<input type="text" id="title" name="title" value="<?php echo $this->article['title']; ?>" class="required" />
		<br />
		
		<label for="article_header">En-tête :</label>
		<br />
		<textarea id="article_header" name="header" class="required"><?php echo $this->article['header']; ?></textarea>
		<br />
		<span class="precision">(Présentation rapide) </span>
		<br />
		
		<label for="article_content">Article :</label>
		<br />
		<textarea id="article_content" name="content" class="required"><?php echo $this->article['content']; ?></textarea>
		<br />
		
		<input type="submit" name="set_send" value="Enregistrer" />
	</form>	
	
	<div id="set_message" class="hidden"></div>
	
</div>
